﻿Ext.require([
    'Ext.form.field.File',
    'Ext.form.Panel',
    'Sofia.file.PDBReader',
    'Sofia.controller.File'
]);

Ext.define('Sofia.view.tab.File',
{
    extend: 'Ext.panel.Panel',
    alias: 'widget.fileTab',

    title: 'Run',
    id: 'filePanel',
    layout:
    {
        type: 'vbox',
        align: 'stretch',
        pack: 'start'
    },

    items:
    [
        {
            xtype: 'panel',
            title: 'Upload PDB file',
            id: 'pdbupload',
            items:
            [
                {
                    xtype: 'filefield',
                    buttonOnly: true,
                    id: 'browseButton',
                    hideLabel: true
                },
                {
                    xtype: 'label',
                    text: 'no file selected',
                    id: 'selectedPDBlabel'
                },
                {
                    xtype: 'button',
                    text: 'Load',
                    id: 'loadButton',
                    alias: 'widget.hibutton'

                },
                {
                    xtype: 'button',
                    text: 'Run Euler\'s Method',
                    id: 'RunEuler'
                }
            ]
        },
    ]
});